const path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');

const config = {
  mode: 'development',
  devServer: {
    contentBase: path.join(__dirname, "public"),
    compress: true,
    port: 6001
  },
  entry: './test/t1.js',
  output: {
    filename: 'bundle.js'
  },
  module: {
    rules: [
    ]
  },
  plugins: [
    new HtmlWebpackPlugin({template: './public/index.html'})
  ]
};

module.exports = config;